package com.vooda.dao;

import com.vooda.entity.Market;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.JpaSpecificationExecutor;

import java.util.List;

/**
 * @author KennyDavid
 */
public interface MarketDao extends JpaRepository<Market, Long>, JpaSpecificationExecutor<Market> {

    /**
     * 查询所有超市列表
     *
     * @param isDel 是否删除
     * @return list
     */
    List<Market> findAllByIsDel(Boolean isDel);
}
